<template>
  <header class="header">
    <nav class="nav">
      <h1>新闻网站</h1>
      <ul class="nav-list">
        <li><a href="#">首页</a></li>
        <li><a href="#">国内</a></li>
        <li><a href="#">娱乐</a></li>
        <li><a href="#">体育</a></li>
      </ul>
    </nav>
  </header>
</template>

<style scoped>
.header {
  background: #2c3e50;
  color: white;
  padding: 1rem 0;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-list a {
  color: white;
  text-decoration: none;
}
</style>